﻿using LambdaGp.Core;

namespace LambdaGp.Operators.Terminals
{
    public class VariableInstance : IStorable
    {
        public VariableInstance(Variable variable)
        {
            Value = variable.DefaultValue;
            Variable = variable;
        }

        public double Value { get; set; }
        public Variable Variable { get; set; }

        public IStorable Clone()
        {
            return new VariableInstance(Variable);
        }
    }
}